<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
 
<div class="main">
	<div class="head">相关文章</div>
    <ul>
    	{php //dump($tags)}
        {get sql="SELECT * FROM `table_app` a,`table_app_tag` k  WHERE a.appid=k.appid and a.`status`=99 AND k.`tag` = '$tag' ORDER BY a.appid DESC" rows="10" page="$page"}
        <li>
        <span class="date">{date('Y-m-d',$r[updatetime])}</span><a href="{$CATEGORY[$r[catid]][url]}" class="catname">[{$CATEGORY[$r[catid]][catname]}]</a><a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 30)}</a>
        </li>
        {/get}
    </ul>
    
    {if $pages}<div class="pagination">{$pages}</div>{/if}
</div>

<div class="aside">
	{template 'tag_content_hots.html'}
</div>



</div>

{template 'footer.html'}